<?php
require_once('lib/db_connection.php');
require_once('phpmailer/config.php');
require_once('phpmailer/MailClass.inc');

$company_name = $_GET['comp'];
$username = $_GET['email'];
$con_person = $_GET['con_person'];
$con_area = $_GET['con_area'];
$con_number = $_GET['con_number'];

if($con_area!='' || $con_area!=null)
{
	$con_area = '('.$con_area.')';
}
else
{
	$con_area = '';
}

//EMAIL FUNCTION
$mailer = new FreakMailer();
$mailer->AddReplyTo('no-reply@journeytech.com.ph','AMPS Journeytech');
$mailer->Subject = 'New Account';
$mailer->IsHTML(true);
$mailer->Body =
'Company:'.$company_name.'<br/>
Username/Email: '.$username.'<br/>
Contact Person: '.$con_person.'<br/>
Contact Number: '.$con_area.$con_number.'<br/>';
$mailer->AltBody = 'Company:'.$company_name.'Username/Email: '.$username.'Contact Person: '.$con_person.'Contact Number: '.$con_area.$con_number;
$mailer->AddAddress('jtech_alex@yahoo.com', 'Alexandra');
$mailer->AddAddress('jtech_dennis@yahoo.com', 'Dennis');
$mailer->AddAddress('jtech_igie@yahoo.com', 'Igie');
$mailer->Send();
$mailer->ClearAddresses();
$mailer->ClearAttachments();
?>